User 2.5 IsInRole [internal]
This stateless function validates your context and returns you if the current user has the requested user role (e.g. VUSERROLEADMINISTRATOR).
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
| psAuthContext | String | InOut | Deprecated proprietary authentication context only used by .ASMX web services based on internal username/password authentication. Claims based security standards drive all the WCF .SVC web services making this parameter redundant. |
| psUserRoleId | String | In | The element name of the user role (e.g. VUSERROLEADMINISTRATOR) |
| pbOutResult | Boolean | Out | Boolean indicating that the result of the function was true or false |
Note that:
- This function is used for internal purposes to mimic
IsAdministratorfunctionality - For stateful client code we recommend to build up a principal object using User.GetMyMetaData where you implement your own
IsInRolefunction on your cached user metadata which will greatly speed up your validation.